#include <stdio.h>
int main() {
    int num = 0,uin = 64, i = 0, last = 0;
   // printf("请输入一个数");
   // scanf("%d",&num);
/*    for(i = 1; i <= 7; i++) {
	if (num / uin) {
	    printf("%d ", uin);
  	} 
	num = num % uin;
 	uin /=2;
    }*/
    for (num = 1;num <= 127;num++) {
	if (num > 2 * last - 1) {
	    printf("%dg ", num);
	    last = num;
 	}
    }
    printf ("\n");
    return 0;
}
